package com.xdkj.model.dao;

import com.xdkj.model.entity.TEmployee;
import com.xdkj.model.vo.TEmployeeVo;

import java.util.List;

/**
 * ClassName TEmployeeDao
 * Description:
 *
 * @Author:一尘
 * @Version:1.0
 * @Date:2021-11-03-10:53
 */
public interface TEmployeeDao {
    /**
     * 查询所有
     *
     * @return {@link List}<{@link TEmployeeVo}>
     */
    List<TEmployeeVo> queryAll();

    /**
     * 分页查询
     *
     * @param page  当前页
     * @param limit 每页显示的记录数
     * @return {@link List}<{@link TEmployeeVo}>
     */
    List<TEmployeeVo> queryByPage(int page, int limit);


    /**
     * 通过id删除
     *
     * @param id id
     * @return boolean
     */
    boolean deleteById(int id);

    /**
     * 更新员工
     *
     * @param employee 员工
     * @return boolean
     */
    boolean updateEmployee(TEmployee employee);
}
